<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <title>Pendingusers: <%= controller.action_name %></title>
        <%= stylesheet_link_tag 'scaffold', 'style' %>
    </head>
    <body>
        <body>
            <div id="header">
                <div id="logo">
                    <h1><a href="#">Hi5-HORSE</a></h1>
                    <p>
                        por <a href="#">SOFTEC</a>
                    </p>
                </div>
            </div>
            <!-- end #header -->
            <div id="menu">
                <ul>
                    <li class="current_page_item">
                        <%= link_to 'Inicio', horses_path %>
                    </li>
                    <li>
                        <a href="#">Nosotros</a>
                    </li>
                    <li>
                        <a href="#">Contacto</a>
                    </li>
                    <li>
                        <a href="#">Salir</a>
                    </li>
                </ul>
            </div>
            <!-- end #menu -->
            <div id="page">
                <div id="content">
                    <%= flash[:notice] %>
                    <div class="post2">
                        <h2>Solicitudes de Usuarios</h2>
                        <br/>
                        <div class="margen">
                            <table width='100%' height='100' border='3px' cellpadding='0' cellspacing='0' bordercolor='#d1ccc7'>
                                <tr>
                                    <th width="180">
                                        Email
                                    </th>
                                    <th width="150">
                                        Last name
                                    </th>
                                    <th width="100">
                                        Country
                                    </th>
                                    <th width="100">
                                        Company
                                    </th>
                                    <th>
                                        Opciones
                                    </th>
                                </tr>
                                <% @pendingusers.each do |pendinguser| %>
                                <tr>
                                    <td>
                                        <%=h pendinguser.email %>
                                    </td>
                                    <td>
                                        <%=h pendinguser.last_name %>
                                    </td>
                                    <td>
                                        <%=h pendinguser.country %>
                                    </td>
                                    <td>
                                        <%=h pendinguser.company %>
                                    </td>
                                    <td>
                                        <%= link_to '<img src="/images/profile.png" border="0px" align="left" style="padding-right:10px"; alt="Ver Perfiel" title="Ver Perfiel">', pendinguser %>
                                        <%= link_to '<img src="/images/delete.png" border="0px" align="left" style="padding-right:10px"; alt="Denegar" title="Denegar Solicitud">', pendinguser, :confirm => 'Are you sure?', :method => :delete %>
                                    </td>
                                </tr>
                                <% end %>
                            </table>
                        </div>
                        <%= will_paginate @pendingusers %>
                    </div>
                </div>
                <div id="sidebar2">
                    <ul>
                        <li>
                            <h2>Herramientas</h2>
                            <ul>
                                <li>
                                    <%= link_to 'Insertar Caballo', new_horse_path %>
                                </li>
                                <li>
                                    <%= link_to 'Ver Familias', families_path %>
                                </li>
                                <li>
                                    <%= link_to 'Ver Jefes de Razas', breedheads_path %>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <strong>
                <div style="clear: both;">
                </strong>
                &nbsp;
            </div>
            </div>
            <div id="footer">
                <p>
                    Copyright (c) 2009  All rights reserved.
                </p>
            </div>
        </body>
        </html>
